// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.beatmap-discussion-nominations {
  @_top: beatmap-discussion-nominations;
  background-color: @osu-colour-b4;
  color: #fff;
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;

  &__discrete-bar-group {
    display: flex;
    gap: 5px;
    margin: 5px 0;
    min-height: 5px;

    &--hybrid {
      min-height: 20px;
    }
  }

  &__header {
    display: flex;
    justify-content: space-between;
    font-size: @font-size--small-2;
  }

  &__item {
    margin: var(--item-margin);

    &:empty {
      display: none;
    }

    .@{_top}__items--buttons & {
      flex: none;
    }

    &--nominators {
      display: flex;
      flex: 1 0 auto;
      align-items: flex-end;
      justify-content: flex-end;
    }
  }

  &__items {
    --item-margin: 10px;
    display: flex;
    margin: calc(var(--item-margin) * -1);
    font-size: @font-size--normal;

    &--buttons {
      --item-margin: 2px;
      flex-wrap: wrap;
      margin-top: 10px;
      justify-content: space-between;
    }

    &--messages {
      flex-direction: column;
      flex: 1 0 auto;
    }
  }

  &__items-grouping {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
  }

  &__title {
    font-weight: 600;
  }

  &__problems {
    color: @osu-colour-orange-2;
  }
}
